﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class In_RaderCfg : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x200;
            }
        }

        public override int Length
        {
            get
            {
                return 7;
            }
        }

        [ParamDecodor(0, 1)]
        public bool MaxDistance_valid { get; set; }

        [ParamDecodor(1, 1)]
        public bool SensorID_valid { get; set; }

        [ParamDecodor(2, 1)]
        public bool RadarPower_Valid { get; set; }

        [ParamDecodor(3, 1)]
        public bool OutputType_valid { get; set; }

        [ParamDecodor(4, 1)]
        public bool SendQuality_valid { get; set; }

        [ParamDecodor(5, 1)]
        public bool SendExtInfo_valid { get; set; }

        [ParamDecodor(6, 1)]
        public bool SortIndex_valid { get; set; }

        [ParamDecodor(7, 1)]
        public bool StoreInNVM_valid { get; set; }

        [ParamDecodor(22, 10, 2, 0)]
        public int MaxDistance { get; set; }

        [ParamDecodor(32, 3)]
        public int SensorID { get; set; }

        [ParamDecodor(35, 2)]
        public int Output_Type { get; set; }

        [ParamDecodor(37, 3)]
        public int RadarPower { get; set; }

        [ParamDecodor(40, 1)]
        public bool CtrlRelay_valid { get; set; }

        [ParamDecodor(41, 1)]
        public bool CtrlRelay { get; set; }

        [ParamDecodor(42, 1)]
        public bool SendQuality { get; set; }

        [ParamDecodor(43, 1)]
        public bool SendExtInfo { get; set; }

        [ParamDecodor(44, 3)]
        public int SortIndex { get; set; }

        [ParamDecodor(47, 1)]
        public bool StoreInNVM { get; set; }

        [ParamDecodor(48, 1)]
        public bool RCS_Threshold_valid { get; set; }

        [ParamDecodor(49, 3)]
        public int RCS_Threshold { get; set; }
    }
}
